import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import elementUi from "element-ui"
import 'element-ui/lib/theme-chalk/index.css'
import component from './utils/components'
import filters from './utils/filters'
import VueAMap from 'vue-amap'
import echarts from 'echarts'
import './assets/icons/iconfont/iconfont.css'
import Vant from 'vant';
import 'vant/lib/index.css';
import './assets/icons/iconfont/iconfont.css';


Vue.prototype.$echarts = echarts
import VueTouch from 'vue-touch'
Vue.use(VueTouch, {name: 'v-touch'})
Vue.use(elementUi).use(component).use(filters).use(VueAMap).use(Vant)
Vue.config.productionTip = false
VueAMap.initAMapApiLoader({
  key: '6d02162d1e3015dc1cf72b89d806591a',
  plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder'],
  v: '1.4.4',
  uiVersion: '1.0'
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
